package cn.dt70.dao.aqbCreditor;

import cn.dt70.pojo.AqbCreditor;

import org.apache.ibatis.annotations.Param;


import java.util.Date;
import java.util.List;

public interface AqbCreditorMapper {

     //查询所有债权
     List<AqbCreditor> queryAll(@Param("transferStatus") Integer transferStatus);


     //根据id查询转让中债权
     List<AqbCreditor> queryById(@Param("id") Integer id,@Param("querytime") Integer querytime);

     //添加债权
     int addCreditor(AqbCreditor aqbCreditor);

     //根据id查债权
     AqbCreditor queryCreditorById(@Param("cId") Integer cId);

     //承接债权
     int updateCreditorById(AqbCreditor aqbCreditor);

     //根据id查询已转让债权
     List<AqbCreditor> queryDoneById(@Param("id") Integer id,@Param("querytime") Integer querytime);

     //查询一段时间的债权
     List<AqbCreditor> queryCreditorByIdForTime(@Param("id") Integer id, @Param("begin") Date begin, @Param("end") Date end);

     //查询一段时间的已转让债权
     List<AqbCreditor> queryCreditorDoneByIdForTime(@Param("id") Integer id, @Param("begin") Date begin, @Param("end") Date end);
}
